import Home from '../pages/Home/index'
import List from '../pages/List/index'
import Layout from '../pages/Layout/index'
import Order from '../pages/Order/index'
import Login from '../pages/Login/index'
import {createBrowserRouter} from 'react-router-dom'

export const childrenll=[
  {
    path: '/',
    element: <Home />,
  },
  {
    path: '/list',
    element: <List />,
  },
  {
    path: '/order',
    element: <Order />,
  },
]

const router= [
  {
    path: '/',
    element: <Layout />,
    children: childrenll
  },{
    path: '/login',
    element: <Login />,
  },{
    path: '*',
    element: <div>404</div>,

  }
]
export default createBrowserRouter(router)